<template>
  <div>
    <!--  头部  -->
    <header>
      <nav-top></nav-top>
    </header>
    <section>
      <!--   主体界面   -->
      <div class="main">
        <!--    文章界面    -->
        <div class="content">
          <div class="later-answer">
            <h3>
              收藏问题列表
            </h3>
            <div>
              <p>法律知识</p>
              <div v-for="(c_item, c_index) in collectionList" :key="c_index">
                由 <span>{{ c_item.user_name }}</span> 创建 •
                <span>{{ c_item.content_num }}</span> 条内容 •
                <span>{{ c_item.follow_num }}</span> 人关注 •
                <el-button style="color: #999" type="text">取消关注</el-button>
              </div>
            </div>
          </div>
        </div>
        <div class="content-right">
          <!--     其他功能     -->
          <div class="user-mould">
            <div>
              <img
                src="../assets/images/write-answer.png"
                width="40"
                height="40"
                alt=""
              />
              <span>写回答</span>
            </div>
            <div>
              <img
                src="../assets/images/write-essay.png"
                width="39"
                height="40"
                alt=""
              />
              <span>写文章</span>
            </div>
            <div>
              <img
                src="../assets/images/invitation-answer.png"
                width="40"
                height="34"
                alt=""
              />
              <span>邀我答</span>
            </div>
            <div>
              <img
                src="../assets/images/process-later.png"
                width="38"
                height="34"
                alt=""
              />
              <span>稍后答</span>
            </div>
            <div>
              <img
                src="../assets/images/draft-box.png"
                width="40"
                height="34"
                alt=""
              />
              <span>草稿箱</span>
            </div>
            <div>
              <img
                src="../assets/images/collect-question.png"
                width="39"
                height="34"
                alt=""
              />
              <span>收藏夹</span>
            </div>
            <div>
              <img
                src="../assets/images/tip-off.png"
                width="45"
                height="40"
                alt=""
              />
              <span>举报中心</span>
            </div>
            <div>
              <img
                src="../assets/images/list-rule.png"
                width="38"
                height="40"
                alt=""
              />
              <span>榜单规则</span>
            </div>
          </div>
          <p>
            Copyright©2019 Lawpro<br />
            沪ICP备19012546号
          </p>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: "forget",
  data() {
    return {
      collectionList: [
        {
          user_name: "治愈莉",
          content_num: "751",
          follow_num: "15102"
        },
        {
          user_name: "治愈莉",
          content_num: "751",
          follow_num: "15102"
        },
        {
          user_name: "治愈莉",
          content_num: "751",
          follow_num: "15102"
        }
      ]
    };
  },
  methods: {}
};
</script>

<style scoped lang="less">
/*头部*/
header {
  z-index: 9999;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 2px 0 rgba(237, 237, 237, 0.4);
}
/*主体*/
section {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding-top: 15px;
  margin-top: 55px;
  background-color: #f6f6f6;

  .main {
    display: flex;
    justify-content: space-between;
    width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;

    .content {
      width: 69%;
      height: 100%;
      border-radius: 2px;
      box-sizing: border-box;
      .later-answer {
        min-height: 100vh;
        height: 100%;
        box-sizing: border-box;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(26, 26, 26, 0.1);
        h3 {
          padding: 20px;
          color: #333;
          border-bottom: 1px solid #f6f6f6;
        }
        & > div {
          padding: 10px 20px;
          font-size: 16px;
          p {
            color: #6b9147;
          }
          div {
            padding: 2px 10px;
            font-size: 14px;
            color: #999;
          }
        }
      }
    }
    .content-right {
      width: 30%;
      .user-mould {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        text-align: center;
        border-radius: 2px;
        background-color: #fff;
        box-shadow: 0 1px 1px 0 rgba(237, 237, 237, 0.4);

        div {
          display: flex;
          flex-direction: column;
          width: 50%;
          margin: 10px 0;
          font-size: 14px;
          cursor: pointer;
          img {
            margin: 10px auto;
          }
        }
      }
      & > p {
        margin-top: 10px;
        line-height: 30px;
        font-size: 15px;
        color: #7d8178;
      }
    }
  }
}
</style>
